﻿<%@ Page Language="C#" MasterPageFile="~/YUIAspNet.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="YUIAspNetDemo.Dialog.Default" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>YUIAspNet Controls : LiveDemo : Dialog : Usage info</title>
    <script type="text/javascript">
        function ok (sender, args)
        {
            sender = $find("ctl00_ContentPlaceHolder1_dlg");
            $get('res').innerHTML = sender.get_YUIControl().getData().join("<br />");
        
            sender.hide();
        }
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Dialog control</h1>
    
    <p>The YUIAsp.Net Dialog showing a simple form with ajax enabled.</p>
    <p><a href="#" onclick="$find('<%=(dlg.ClientID) %>').show()">Show dialog</a></p>
        
    <yui:Dialog ID="dlg" runat="server" Draggable="true" Centered="true" ContentURL="SimpleForm.aspx">
        <HeaderTemplate>My custom client form</HeaderTemplate>
    </yui:Dialog>
    
    <p>The YUIAsp.Net Dialog showing a simple form with ajax enabled.</p>
    <p><a href="#" onclick="$find('<%=(dlg2.ClientID) %>').show()">Show window with YUI</a></p>
     <yui:Dialog ID="dlg2" runat="server" Draggable="true" Centered="true" Width="800px" Height="600px" ContentURL="http://developer.yahoo.com/yui">
        <HeaderTemplate>Yahoo developer</HeaderTemplate>
        <FooterTemplate>http://developer.yahoo.com/yui</FooterTemplate>
    </yui:Dialog>
</asp:Content>
